package cn.school.listener;

import cn.school.common.valid.ExcelInValid;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class UploadDataListener <T> extends AnalysisEventListener<T> {
    @Override
    public void invoke(T data, AnalysisContext context) {
        ExcelInValid.valid(data);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext context) {

    }
}
